<html>
	<head>
		<title>test iframe hack</title>
		<script type="text/javascript">
			function init() {
				d("foo").src = "http://localhost.iammessias.com:8080/child.html"
				
				d("foo").style.position = "absolute";

				//d("foo").style.left = "-1000000000px";
				//d("foo").style.top =  "-1000000000px";

				d("test").onclick = function() {
					try {
						d("foo").contentDocument.recieveMessage("425423");						
					}
					catch(err) {
						alert(err);					
					}
				}

				d("go").onclick = function() {
					sendMessage("425423", d("foo"));
				}
				
				function sendMessage(i, ifr) {
					var si = ""+i;
					var l = si.substring(0,Math.round(si.length/2));
					var r = si.substring(l.length, si.length);
					ifr.width = l;
					ifr.height = r;
				}
			}
			function d(id) {
				return document.getElementById(id);
			}
		</script>
	</head>
	<body onload="init();">
		<div id="a">
			<button id="test">send 425423 classic</button><button id="go">send 425423 hack</button>
			</br>
			<iframe id="foo" name="foo" >
			</iframe>
		</div>
	</body>
</html>